.class public Lcom/xingbook/park/activity/SearchAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/xingbook/service/download/f;
.implements Lcom/xingbook/ui/x;


# instance fields
.field private A:Lcom/xingbook/park/ui/am;

.field private B:Ljava/util/ArrayList;

.field private C:Z

.field private D:Lcom/xingbook/park/activity/by;

.field private E:Lcom/xingbook/audio/d/l;

.field private F:Lcom/xingbook/xingbook/d/l;

.field private G:Lcom/xingbook/xingbook/c/d;

.field public a:Lcom/xingbook/ui/af;

.field b:Landroid/app/ProgressDialog;

.field c:Lcom/xingbook/park/ui/av;

.field private d:[I

.field private e:[Ljava/lang/String;

.field private f:[I

.field private g:[I

.field private h:Lcom/xingbook/park/activity/bx;

.field private i:I

.field private l:Landroid/view/View;

.field private m:Landroid/widget/EditText;

.field private n:I

.field private o:Landroid/widget/ListView;

.field private p:Lcom/xingbook/park/b/d;

.field private q:Landroid/widget/LinearLayout;

.field private r:Landroid/widget/RelativeLayout;

.field private s:Lcom/xingbook/ui/q;

.field private t:Lcom/xingbook/ui/ae;

.field private u:Landroid/widget/LinearLayout;

.field private v:Landroid/widget/ImageView;

.field private w:Landroid/widget/TextView;

.field private x:Ljava/lang/String;

.field private y:Landroid/widget/RelativeLayout;

.field private z:Lcom/xingbook/park/a/w;


# direct methods
.method public constructor <init>()V
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    const/16 v3, 0x8

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    new-array v0, v3, [I

    fill-array-data v0, :array_0

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    new-array v0, v3, [Ljava/lang/String;

    const-string v1, "\u5168\u90e8"

    aput-object v1, v0, v4

    const/4 v1, 0x1

    const-string v2, "\u661f\u5b9d\u4e66"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "\u7ed8\u672c"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "\u542c\u542c"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "\u513f\u6b4c"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "\u5f71\u9662"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string v2, "\u8bdd\u9898"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    const-string v2, "\u767e\u79d1"

    aput-object v2, v0, v1

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->e:[Ljava/lang/String;

    new-array v0, v3, [I

    fill-array-data v0, :array_1

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    new-array v0, v3, [I

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    iput v4, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    iput-object v5, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    iput-boolean v4, p0, Lcom/xingbook/park/activity/SearchAct;->C:Z

    new-instance v0, Lcom/xingbook/park/activity/by;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/by;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->D:Lcom/xingbook/park/activity/by;

    new-instance v0, Lcom/xingbook/park/activity/bn;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/bn;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->E:Lcom/xingbook/audio/d/l;

    new-instance v0, Lcom/xingbook/park/activity/bp;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/bp;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->F:Lcom/xingbook/xingbook/d/l;

    new-instance v0, Lcom/xingbook/park/activity/bq;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/bq;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->G:Lcom/xingbook/xingbook/c/d;

    iput-object v5, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    new-instance v0, Lcom/xingbook/park/activity/br;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/br;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->c:Lcom/xingbook/park/ui/av;

    return-void

    :array_0
    .array-data 0x4
        0xfft 0xfft 0xfft 0x7ft
        0x30t 0x0t 0x0t 0x0t
        0x70t 0x0t 0x0t 0x0t
        0x50t 0x0t 0x0t 0x0t
        0x40t 0x0t 0x0t 0x0t
        0x60t 0x0t 0x0t 0x0t
        0xc0t 0x0t 0x0t 0x0t
        0xd0t 0x0t 0x0t 0x0t
    .end array-data

    :array_1
    .array-data 0x4
        0x3dt 0x52t 0xf4t 0xfft
        0xfft 0xbct 0x77t 0xfft
        0xc7t 0x93t 0xfft 0xfft
        0x66t 0xe2t 0x78t 0xfft
        0x3ct 0xd3t 0xfft 0xfft
        0xf7t 0xb7t 0xb7t 0xfft
        0x0t 0xcct 0xfft 0xfft
        0xd6t 0xd7t 0x57t 0xfft
    .end array-data
.end method

.method static synthetic a(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/a/w;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    return-object v0
.end method

.method public static a(Landroid/content/Context;ILjava/lang/String;Z)V
    .locals 3

    const/4 v2, 0x6

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/SearchAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    if-eqz p2, :cond_0

    const-string v1, ""

    invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "com.xingbook.park.activity.EXTRA_SEARCH_KEY"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    if-ltz p1, :cond_0

    const-string v1, "com.xingbook.park.activity.EXTRA_RESOURCE_TYPE"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    :cond_0
    const-string v1, "com.xingbook.park.activity.EXTRA_ISMULTINTEL"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    instance-of v1, p0, Landroid/app/Activity;

    if-nez v1, :cond_1

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_1
    instance-of v1, p0, Lcom/xingbook/park/activity/BaseActivity;

    if-eqz v1, :cond_2

    check-cast p0, Lcom/xingbook/park/activity/BaseActivity;

    invoke-virtual {p0, v0, v2}, Lcom/xingbook/park/activity/BaseActivity;->a(Landroid/content/Intent;I)V

    :goto_0
    return-void

    :cond_2
    instance-of v1, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;

    if-eqz v1, :cond_3

    check-cast p0, Lcom/xingbook/park/activity/BaseFragmentActivity;

    invoke-virtual {p0, v0, v2}, Lcom/xingbook/park/activity/BaseFragmentActivity;->a(Landroid/content/Intent;I)V

    goto :goto_0

    :cond_3
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/park/activity/SearchAct;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/park/activity/SearchAct;->b(I)V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/xingbook/c/d;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->G:Lcom/xingbook/xingbook/c/d;

    return-object v0
.end method

.method private b(I)V
    .locals 2

    iput p1, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    aget v1, v1, p1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/d;->b(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/park/a/w;->a(Ljava/util/ArrayList;)V

    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/b/d;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/park/activity/SearchAct;)[I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/activity/bx;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    return-object v0
.end method

.method private f()V
    .locals 15
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    new-instance v0, Landroid/widget/RelativeLayout;

    invoke-direct {v0, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x1

    invoke-direct {v1, v2, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->q:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->q:Landroid/widget/LinearLayout;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->q:Landroid/widget/LinearLayout;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x1

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v2, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v2, p0}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v3

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v4

    new-instance v0, Lcom/xingbook/ui/t;

    invoke-direct {v0, p0, p0}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/t;->setTitle(Ljava/lang/String;)V

    const v1, -0xe74b13

    iput v1, v0, Lcom/xingbook/ui/t;->h:I

    const v1, -0x2a2a2b

    iput v1, v0, Lcom/xingbook/ui/t;->i:I

    const/4 v1, 0x0

    const/4 v5, 0x0

    sget v6, Lcom/xingbook/ui/t;->b:I

    invoke-virtual {v0, v1, v5, v4, v6}, Lcom/xingbook/ui/t;->layout(IIII)V

    invoke-virtual {v2, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    const/16 v0, 0xff

    const/16 v1, 0x48

    const/16 v5, 0xce

    const/16 v6, 0xff

    invoke-static {v0, v1, v5, v6}, Landroid/graphics/Color;->argb(IIII)I

    move-result v0

    const v1, 0x41f6e148

    mul-float/2addr v1, v3

    const/high16 v5, 0x41a0

    mul-float/2addr v5, v3

    invoke-static {v5}, Ljava/lang/Math;->round(F)I

    move-result v5

    const/high16 v6, 0x42fc

    mul-float/2addr v6, v3

    invoke-static {v6}, Ljava/lang/Math;->round(F)I

    move-result v6

    new-instance v7, Landroid/widget/EditText;

    invoke-direct {v7, p0}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setFocusable(Z)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v7}, Landroid/widget/EditText;->setSingleLine()V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x0

    invoke-virtual {v7, v8, v1}, Landroid/widget/EditText;->setTextSize(IF)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/16 v8, 0xff

    const/4 v9, 0x0

    const/4 v10, 0x0

    const/4 v11, 0x0

    invoke-static {v8, v9, v10, v11}, Landroid/graphics/Color;->argb(IIII)I

    move-result v8

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setTextColor(I)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const-string v8, "\u641c\u7d22\u661f\u5b9d\u4e50\u56ed"

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    if-eqz v7, :cond_0

    const-string v7, ""

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_0

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v7}, Landroid/widget/EditText;->getPaint()Landroid/text/TextPaint;

    move-result-object v7

    invoke-virtual {v7}, Landroid/text/TextPaint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v7

    sget v8, Lcom/xingbook/ui/t;->b:I

    mul-int/lit8 v9, v5, 0x2

    sub-int/2addr v8, v9

    int-to-float v8, v8

    iget v9, v7, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float/2addr v8, v9

    iget v7, v7, Landroid/graphics/Paint$FontMetrics;->ascent:F

    add-float/2addr v7, v8

    const/high16 v8, 0x4000

    div-float/2addr v7, v8

    invoke-static {v7}, Ljava/lang/Math;->round(F)I

    move-result v7

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v8, v5, v7, v5, v7}, Landroid/widget/EditText;->setPadding(IIII)V

    sget v7, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v8, 0x10

    if-lt v7, v8, :cond_1

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    sget v7, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v8, 0x10

    if-lt v7, v8, :cond_2

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x0

    const v9, 0xffffff

    const/high16 v10, 0x4120

    mul-float/2addr v10, v3

    float-to-int v10, v10

    const/4 v11, -0x1

    invoke-static {v8, v9, v10, v11}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    sget v8, Lcom/xingbook/ui/t;->a:I

    mul-int/lit8 v9, v5, 0x2

    sub-int v9, v4, v9

    sub-int/2addr v9, v6

    sget v10, Lcom/xingbook/ui/t;->b:I

    sub-int/2addr v10, v5

    invoke-virtual {v7, v8, v5, v9, v10}, Landroid/widget/EditText;->layout(IIII)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v2, v7}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    sget v7, Lcom/xingbook/ui/t;->b:I

    mul-int/lit8 v8, v5, 0x2

    sub-int/2addr v7, v8

    new-instance v8, Landroid/view/View;

    invoke-direct {v8, p0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/4 v10, 0x2

    invoke-virtual {v8, v10}, Landroid/view/View;->setId(I)V

    const/4 v10, 0x1

    invoke-virtual {v8, v10}, Landroid/view/View;->setClickable(Z)V

    invoke-virtual {v8, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/16 v10, 0x8

    invoke-virtual {v8, v10}, Landroid/view/View;->setVisibility(I)V

    const v10, 0x7f0202a1

    invoke-virtual {v8, v10}, Landroid/view/View;->setBackgroundResource(I)V

    sub-int v7, v9, v7

    sget v10, Lcom/xingbook/ui/t;->b:I

    sub-int/2addr v10, v5

    invoke-virtual {v8, v7, v5, v9, v10}, Landroid/view/View;->layout(IIII)V

    invoke-virtual {v2, v8}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    new-instance v9, Lcom/xingbook/park/activity/bu;

    invoke-direct {v9, p0, v8}, Lcom/xingbook/park/activity/bu;-><init>(Lcom/xingbook/park/activity/SearchAct;Landroid/view/View;)V

    invoke-virtual {v7, v9}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    new-instance v7, Lcom/xingbook/ui/ad;

    invoke-direct {v7, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Lcom/xingbook/ui/ad;->setId(I)V

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    invoke-virtual {v7, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const-string v8, "\u641c\u7d22"

    iput-object v8, v7, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    const/4 v8, -0x1

    iput v8, v7, Lcom/xingbook/ui/ad;->b:I

    iput v1, v7, Lcom/xingbook/ui/ad;->c:F

    iput v0, v7, Lcom/xingbook/ui/ad;->i:I

    const/high16 v0, 0x41a0

    mul-float/2addr v0, v3

    iput v0, v7, Lcom/xingbook/ui/ad;->j:F

    const v0, -0x2a2a2b

    invoke-virtual {v7, v0}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    sub-int v0, v4, v5

    sub-int/2addr v0, v6

    sub-int v1, v4, v5

    sget v6, Lcom/xingbook/ui/t;->b:I

    sub-int/2addr v6, v5

    invoke-virtual {v7, v0, v5, v1, v6}, Lcom/xingbook/ui/ad;->layout(IIII)V

    invoke-virtual {v2, v7}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/park/activity/bx;

    invoke-direct {v0, p0, p0, v3}, Lcom/xingbook/park/activity/bx;-><init>(Lcom/xingbook/park/activity/SearchAct;Landroid/content/Context;F)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->e:[Ljava/lang/String;

    array-length v5, v0

    const/high16 v0, 0x42f0

    mul-float/2addr v0, v3

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v6

    mul-int/lit8 v0, v6, 0x5

    sub-int v0, v4, v0

    div-int/lit8 v0, v0, 0x7

    int-to-float v0, v0

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v7

    const/high16 v0, 0x4330

    mul-float/2addr v0, v3

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    sub-int/2addr v0, v6

    div-int/lit8 v8, v0, 0x2

    const/4 v1, 0x0

    new-instance v9, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v9, p0}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    add-int v0, v8, v6

    iput v0, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    const/4 v0, 0x0

    :goto_2
    if-lt v0, v5, :cond_3

    const/high16 v0, 0x4040

    mul-float/2addr v0, v3

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    invoke-static {v1}, Lcom/xingbook/park/activity/bx;->a(Lcom/xingbook/park/activity/bx;)[I

    move-result-object v1

    const/4 v8, 0x6

    aget v1, v1, v8

    div-int/lit8 v8, v0, 0x2

    add-int/2addr v1, v8

    neg-int v1, v1

    new-instance v8, Landroid/view/View;

    invoke-direct {v8, p0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    const v10, -0x33ffec

    invoke-virtual {v8, v10}, Landroid/view/View;->setBackgroundColor(I)V

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    invoke-virtual {v9, v8}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v10, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    iget v11, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v10, v10, v11

    invoke-virtual {v8, v10}, Lcom/xingbook/park/activity/bx;->setBackgroundColor(I)V

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v10, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    iget v11, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v10, v10, v11

    iget v11, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v12, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    iget v13, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v12, v12, v13

    iget-object v13, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v13, v13, Lcom/xingbook/park/activity/bx;->a:I

    add-int/2addr v12, v13

    iget v13, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v14, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v14, v14, Lcom/xingbook/park/activity/bx;->b:I

    add-int/2addr v13, v14

    invoke-virtual {v8, v10, v11, v12, v13}, Lcom/xingbook/park/activity/bx;->layout(IIII)V

    iget-object v8, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    invoke-virtual {v9, v8}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    iget v8, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v10, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v10, v10, Lcom/xingbook/park/activity/bx;->b:I

    add-int/2addr v8, v10

    mul-int/2addr v6, v5

    add-int/lit8 v5, v5, 0x1

    mul-int/2addr v5, v7

    add-int/2addr v5, v6

    iget-object v6, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    const/4 v7, 0x0

    add-int v10, v8, v1

    add-int/2addr v1, v8

    add-int/2addr v0, v1

    invoke-virtual {v6, v7, v10, v5, v0}, Landroid/view/View;->layout(IIII)V

    new-instance v0, Landroid/widget/HorizontalScrollView;

    invoke-direct {v0, p0}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->setHorizontalScrollBarEnabled(Z)V

    invoke-virtual {v0, v9}, Landroid/widget/HorizontalScrollView;->addView(Landroid/view/View;)V

    invoke-virtual {v2, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    const/4 v1, 0x0

    sget v6, Lcom/xingbook/ui/t;->b:I

    sget v7, Lcom/xingbook/ui/t;->b:I

    add-int/2addr v7, v8

    invoke-virtual {v0, v1, v6, v4, v7}, Landroid/widget/HorizontalScrollView;->layout(IIII)V

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {v9, v0, v1, v5, v8}, Lcom/xingbook/ui/XbLayout;->layout(IIII)V

    sget v0, Lcom/xingbook/ui/t;->b:I

    add-int/2addr v0, v8

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->q:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v2, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;II)V

    new-instance v1, Landroid/widget/ListView;

    invoke-direct {v1, p0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setCacheColorHint(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    const v2, 0x7f070043

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setSelector(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setDividerHeight(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    const/4 v4, -0x1

    const/4 v5, -0x1

    invoke-direct {v2, v4, v5}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v2

    sub-int/2addr v2, v0

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setMinimumHeight(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setMinimumWidth(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    new-instance v2, Lcom/xingbook/park/activity/bv;

    invoke-direct {v2, p0}, Lcom/xingbook/park/activity/bv;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->q:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v4

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v5

    sub-int/2addr v5, v0

    invoke-virtual {v1, v2, v4, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;II)V

    new-instance v1, Landroid/widget/LinearLayout;

    invoke-direct {v1, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v1, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    const/16 v2, 0x11

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v4, -0x1

    invoke-direct {v1, v2, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v0, v1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->v:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->v:Landroid/widget/ImageView;

    sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v2, 0x4282

    mul-float/2addr v2, v3

    float-to-int v2, v2

    const/high16 v4, 0x428a

    mul-float/2addr v4, v3

    float-to-int v4, v4

    invoke-direct {v1, v2, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->v:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->v:Landroid/widget/ImageView;

    const v2, 0x7f020240

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->v:Landroid/widget/ImageView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    const/4 v2, 0x0

    const/high16 v4, 0x420c

    mul-float/2addr v4, v3

    invoke-virtual {v1, v2, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    const v2, -0x666667

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x2

    const/4 v4, -0x2

    invoke-direct {v1, v2, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v2, 0x4120

    mul-float/2addr v2, v3

    float-to-int v2, v2

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    const-string v2, "\u52a0\u8f7d\u5931\u8d25\uff0c\u8f7b\u89e6\u5c4f\u5e55\u91cd\u65b0\u52a0\u8f7d\uff01"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->y:Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x1

    invoke-direct {v1, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v0, v1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->y:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->y:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v0, Lcom/xingbook/ui/q;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/q;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->s:Lcom/xingbook/ui/q;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->s:Lcom/xingbook/ui/q;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/q;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->s:Lcom/xingbook/ui/q;

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    const/4 v3, -0x1

    const/4 v4, -0x1

    invoke-direct {v2, v3, v4}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SearchAct;->setContentView(Landroid/view/View;)V

    return-void

    :cond_1
    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :cond_2
    iget-object v7, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const/4 v8, 0x0

    const v9, 0xffffff

    const/high16 v10, 0x4120

    mul-float/2addr v10, v3

    float-to-int v10, v10

    const/4 v11, -0x1

    invoke-static {v8, v9, v10, v11}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_1

    :cond_3
    new-instance v10, Lcom/xingbook/ui/ad;

    invoke-direct {v10, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    add-int/lit8 v11, v0, 0x64

    invoke-virtual {v10, v11}, Lcom/xingbook/ui/ad;->setId(I)V

    const/4 v11, 0x1

    invoke-virtual {v10, v11}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    invoke-virtual {v10, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v11, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    aget v11, v11, v0

    iput v11, v10, Lcom/xingbook/ui/ad;->i:I

    iget-object v11, p0, Lcom/xingbook/park/activity/SearchAct;->e:[Ljava/lang/String;

    aget-object v11, v11, v0

    iput-object v11, v10, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    const/4 v11, -0x1

    iput v11, v10, Lcom/xingbook/ui/ad;->b:I

    const/high16 v11, 0x420c

    mul-float/2addr v11, v3

    iput v11, v10, Lcom/xingbook/ui/ad;->c:F

    const/4 v11, 0x1

    iput v11, v10, Lcom/xingbook/ui/ad;->d:I

    int-to-float v11, v6

    const/high16 v12, 0x4000

    div-float/2addr v11, v12

    iput v11, v10, Lcom/xingbook/ui/ad;->j:F

    add-int v11, v1, v7

    add-int v1, v11, v6

    iget v12, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    invoke-virtual {v10, v11, v8, v1, v12}, Lcom/xingbook/ui/ad;->layout(IIII)V

    invoke-virtual {v9, v10}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    iget-object v10, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    int-to-float v11, v1

    iget-object v12, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v12, v12, Lcom/xingbook/park/activity/bx;->a:I

    add-int/2addr v12, v6

    int-to-float v12, v12

    const/high16 v13, 0x4000

    div-float/2addr v12, v13

    sub-float/2addr v11, v12

    invoke-static {v11}, Ljava/lang/Math;->round(F)I

    move-result v11

    aput v11, v10, v0

    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_2
.end method

.method private g()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/am;->b()V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    invoke-virtual {v0}, Lcom/xingbook/park/b/d;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    invoke-virtual {v0}, Lcom/xingbook/park/b/d;->a()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->D:Lcom/xingbook/park/activity/by;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/by;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/activity/bw;

    invoke-direct {v1, p0}, Lcom/xingbook/park/activity/bw;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    :goto_0
    return-void

    :cond_1
    const-string v0, "\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u5b57"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method static synthetic g(Lcom/xingbook/park/activity/SearchAct;)[I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    return-object v0
.end method

.method static synthetic h(Lcom/xingbook/park/activity/SearchAct;)[I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    return-object v0
.end method

.method static synthetic i(Lcom/xingbook/park/activity/SearchAct;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    return v0
.end method

.method static synthetic j(Lcom/xingbook/park/activity/SearchAct;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    return-object v0
.end method

.method static synthetic k(Lcom/xingbook/park/activity/SearchAct;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/activity/SearchAct;->g()V

    return-void
.end method

.method static synthetic l(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/ui/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->t:Lcom/xingbook/ui/ae;

    return-object v0
.end method

.method static synthetic m(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->u:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic n(Lcom/xingbook/park/activity/SearchAct;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    return v0
.end method

.method static synthetic o(Lcom/xingbook/park/activity/SearchAct;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->B:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic p(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->o:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic q(Lcom/xingbook/park/activity/SearchAct;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->w:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic r(Lcom/xingbook/park/activity/SearchAct;)Lcom/xingbook/park/activity/by;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->D:Lcom/xingbook/park/activity/by;

    return-object v0
.end method


# virtual methods
.method public a(I)V
    .locals 0

    if-nez p1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->d()V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCanceledOnTouchOutside(Z)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0, p1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    :cond_1
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 1

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/xingbook/service/download/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method public declared-synchronized a(Z)V
    .locals 1

    monitor-enter p0

    :try_start_0
    iput-boolean p1, p0, Lcom/xingbook/park/activity/SearchAct;->C:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/park/activity/SearchAct;->C:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method protected b()V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    invoke-virtual {v0}, Lcom/xingbook/park/b/d;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SearchAct;->a(Z)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->D:Lcom/xingbook/park/activity/by;

    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/by;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/activity/bo;

    invoke-direct {v1, p0}, Lcom/xingbook/park/activity/bo;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public c()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->b:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public d()V
    .locals 1

    const/4 v0, 0x5

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/SearchAct;->d(I)V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u641c\u7d22"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 7

    const/4 v3, 0x0

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/16 v1, 0x64

    if-lt v0, v1, :cond_2

    add-int/lit8 v0, v0, -0x64

    if-ltz v0, :cond_0

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->e:[Ljava/lang/String;

    array-length v1, v1

    if-ge v0, v1, :cond_0

    iget v1, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    if-eq v0, v1, :cond_0

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/app/Activity;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-virtual {v1, v3}, Lcom/xingbook/park/a/w;->a(Ljava/util/ArrayList;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    aget v2, v2, v0

    invoke-virtual {v1, v2}, Lcom/xingbook/park/activity/bx;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    aget v2, v2, v0

    iget v3, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v4, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    aget v4, v4, v0

    iget-object v5, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v5, v5, Lcom/xingbook/park/activity/bx;->a:I

    add-int/2addr v4, v5

    iget v5, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v6, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v6, v6, Lcom/xingbook/park/activity/bx;->b:I

    add-int/2addr v5, v6

    invoke-virtual {v1, v2, v3, v4, v5}, Lcom/xingbook/park/activity/bx;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    aget v2, v2, v0

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundColor(I)V

    invoke-direct {p0, v0}, Lcom/xingbook/park/activity/SearchAct;->b(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v1

    if-lez v1, :cond_0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/xingbook/park/activity/SearchAct;->g()V

    goto :goto_0

    :cond_2
    const/4 v1, 0x1

    if-eq v0, v1, :cond_3

    const/4 v1, 0x3

    if-ne v0, v1, :cond_6

    :cond_3
    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/app/Activity;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v1

    if-lez v1, :cond_5

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_4

    const-string v0, "\u8bf7\u8f93\u5165\u6709\u6548\u5173\u952e\u8bcd"

    invoke-static {p0, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    :goto_1
    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/am;->b()V

    goto :goto_0

    :cond_4
    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/xingbook/park/activity/SearchAct;->g()V

    goto :goto_1

    :cond_5
    const-string v0, "\u8bf7\u8f93\u5165\u5173\u952e\u8bcd"

    invoke-static {p0, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1

    :cond_6
    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-virtual {v0, v3}, Lcom/xingbook/park/a/w;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/am;->a()V

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/app/Activity;)V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 10

    const/4 v9, -0x1

    const/4 v8, 0x0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v7

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    aget v0, v0, v8

    new-instance v0, Lcom/xingbook/park/b/d;

    invoke-direct {v0}, Lcom/xingbook/park/b/d;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->B:Ljava/util/ArrayList;

    if-eqz v7, :cond_4

    const-string v0, "com.xingbook.park.activity.EXTRA_RESOURCE_TYPE"

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    aget v1, v1, v8

    invoke-virtual {v7, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v1

    const-string v0, "com.xingbook.park.activity.EXTRA_SEARCH_KEY"

    invoke-virtual {v7, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    array-length v0, v0

    add-int/lit8 v0, v0, -0x1

    :goto_0
    if-gez v0, :cond_2

    :goto_1
    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    new-instance v0, Lcom/xingbook/park/ui/am;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v1

    new-instance v2, Lcom/xingbook/park/activity/bs;

    invoke-direct {v2, p0}, Lcom/xingbook/park/activity/bs;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    invoke-direct {v0, p0, v1, v2}, Lcom/xingbook/park/ui/am;-><init>(Landroid/app/Activity;FLcom/xingbook/park/ui/ap;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    if-eqz v0, :cond_5

    const-string v0, ""

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    :goto_2
    new-instance v0, Lcom/xingbook/park/a/w;

    new-instance v2, Lcom/xingbook/park/activity/bt;

    invoke-direct {v2, p0}, Lcom/xingbook/park/activity/bt;-><init>(Lcom/xingbook/park/activity/SearchAct;)V

    iget-object v3, p0, Lcom/xingbook/park/activity/SearchAct;->E:Lcom/xingbook/audio/d/l;

    iget-object v4, p0, Lcom/xingbook/park/activity/SearchAct;->F:Lcom/xingbook/xingbook/d/l;

    iget-object v5, p0, Lcom/xingbook/park/activity/SearchAct;->c:Lcom/xingbook/park/ui/av;

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/xingbook/park/a/w;-><init>(Landroid/app/Activity;Lcom/xingbook/park/c/a/p;Lcom/xingbook/audio/d/l;Lcom/xingbook/xingbook/d/l;Lcom/xingbook/park/ui/av;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-direct {p0}, Lcom/xingbook/park/activity/SearchAct;->f()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    iget v2, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v1, v1, v2

    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/bx;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    iget v2, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v1, v1, v2

    iget v2, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v3, p0, Lcom/xingbook/park/activity/SearchAct;->g:[I

    iget v4, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v3, v3, v4

    iget-object v4, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v4, v4, Lcom/xingbook/park/activity/bx;->a:I

    add-int/2addr v3, v4

    iget v4, p0, Lcom/xingbook/park/activity/SearchAct;->i:I

    iget-object v5, p0, Lcom/xingbook/park/activity/SearchAct;->h:Lcom/xingbook/park/activity/bx;

    iget v5, v5, Lcom/xingbook/park/activity/bx;->b:I

    add-int/2addr v4, v5

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/xingbook/park/activity/bx;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->l:Landroid/view/View;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->f:[I

    iget v2, p0, Lcom/xingbook/park/activity/SearchAct;->n:I

    aget v1, v1, v2

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->y:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->t:Lcom/xingbook/ui/ae;

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->a(Lcom/xingbook/service/download/m;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    move-object v0, p0

    move v3, v8

    move v4, v8

    move v5, v8

    move v6, v8

    invoke-static/range {v0 .. v6}, Lcom/xingbook/park/ui/a;->a(Landroid/content/Context;Landroid/widget/RelativeLayout;FIIII)Lcom/xingbook/park/ui/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    if-eqz v0, :cond_0

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v9, v9}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sget v1, Lcom/xingbook/ui/t;->b:I

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/ui/am;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/am;->a()V

    :cond_0
    if-eqz v7, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    if-eqz v0, :cond_1

    const-string v0, ""

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    const-string v1, "com.xingbook.park.activity.EXTRA_ISMULTINTEL"

    invoke-virtual {v7, v1, v8}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/d;->a(Z)V

    :cond_1
    return-void

    :cond_2
    iget-object v2, p0, Lcom/xingbook/park/activity/SearchAct;->d:[I

    aget v2, v2, v0

    if-ne v2, v1, :cond_3

    invoke-direct {p0, v0}, Lcom/xingbook/park/activity/SearchAct;->b(I)V

    goto/16 :goto_1

    :cond_3
    add-int/lit8 v0, v0, -0x1

    goto/16 :goto_0

    :cond_4
    invoke-direct {p0, v8}, Lcom/xingbook/park/activity/SearchAct;->b(I)V

    goto/16 :goto_1

    :cond_5
    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->A:Lcom/xingbook/park/ui/am;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/am;->b()V

    goto/16 :goto_2
.end method

.method protected onDestroy()V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->c()V

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Lcom/xingbook/service/download/m;)V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->d()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onPostResume()V
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPostResume()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    if-eqz v0, :cond_0

    const-string v0, ""

    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->x:Ljava/lang/String;

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/app/Activity;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v1

    if-lez v1, :cond_2

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_1

    const-string v0, "\u8bf7\u8f93\u5165\u6709\u6548\u5173\u952e\u8bcd"

    invoke-static {p0, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->m:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/park/activity/SearchAct;->p:Lcom/xingbook/park/b/d;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/b/d;->a(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/xingbook/park/activity/SearchAct;->g()V

    goto :goto_0

    :cond_2
    const-string v0, "\u8bf7\u8f93\u5165\u5173\u952e\u8bcd"

    invoke-static {p0, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->y:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->t:Lcom/xingbook/ui/ae;

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->z:Lcom/xingbook/park/a/w;

    invoke-virtual {v0}, Lcom/xingbook/park/a/w;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->r:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/af;->a(Landroid/view/ViewGroup;Landroid/app/Activity;)Lcom/xingbook/ui/af;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/SearchAct;->a:Lcom/xingbook/ui/af;

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/SearchAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
